<%-- 
    Document   : viewAccount
    Created on : 6 déc. 2011, 17:32:39
    Author     : Sébastien
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script type="text/javascript">

        </script> 
    </head>
    <body>
        <table>
            <tr>
                <td>Username :</td>
                <td>${account.username}</td>
            </tr>
            <tr>
                <td>Given Name :</td>
                <td>${account.firstName}</td>
            </tr>
            <tr>
                <td>Last Name :</td>
                <td>${account.lastName}</td>
            </tr>
            <tr>
                <td>Email : </td>
                <td>${account.email}</td>
            </tr>
            <tr>
                <td>Type of Account :</td>
                <td>${accountType}</td>
            </tr>
            <tr> 
                <td colspan="2">
                    <form action="deleteAccount.do" >
                    <input type="button" value="Supprimer Compte" onclick='if (confirm("Voulez vous vraiment supprimer le compte?")) {document.forms[0].submit();}' />
                    </form>
                </td>
            </tr>
        </table>
    </body>
</html>
